std::basic_istream::peek

From Cppreference

Jump to: navigation, search
​int_type peek();

Reads the next character from the input stream without extracting it.

Contents

Parameters

(none)

Return value

the next character if ​good() == true, ​Traits::eof() otherwise.

Example

See also

get
extracts characters
(public member function)
unget
unextracts a character
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages